package top.oylan.mp.entity;

import lombok.Data;
import top.oylan.mp.utils.DateUtils;

import java.util.Date;

@Data
public class Menu {
    protected Integer id;

    protected String name;

    protected String path;

    protected String iconCls;

    protected String component;

    protected Integer parentId;

    protected Date createTime;

    protected String actionCode;

    protected String createTimeStr;

    protected Byte level;

    protected Byte hidden;

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
        this.createTimeStr = DateUtils.toStrTime(createTime);
    }
}